#include <fermat/libhttp/http_direction.h>

namespace fermat {
namespace libhttp {

const char *getHttpDirectionString(HttpDirection dir)
{
	switch(dir) {
		case HttpDirection::kUpStream: return "upstream";
		case HttpDirection::kDownStream: return "downstream";
	}
	return "";
}
HttpDirection operator!(HttpDirection dir)
{
	return dir == HttpDirection::kDownStream? HttpDirection::kUpStream
			: HttpDirection::kDownStream;
}
}
}